package com.wzh.live.feign;

import com.wzh.live.entity.GoodsEntity;
import com.wzh.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author WZH
 * @title: GoodsFeign
 * @projectName miaosha
 * @description:
 * @date 2022/2/22
 */
@FeignClient("goods")
public interface GoodsFeign {
    @RequestMapping("goods/goods/info/{id}")
    R info(@PathVariable("id") Long id);

    @RequestMapping("goods/goods/update")
    R update(@RequestBody GoodsEntity goods);
}
